package com.huage.courseplatform.application.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.huage.courseplatform.application.mapper.HomeworkMapper;
import com.huage.courseplatform.application.mapper.NoticeMapper;
import com.huage.courseplatform.application.mapper.PeriodMapper;
import com.huage.courseplatform.application.model.dto.HomeworkDTO;
import com.huage.courseplatform.application.model.entity.Homework;
import com.huage.courseplatform.application.model.entity.Notice;
import com.huage.courseplatform.application.model.entity.Student;
import com.huage.courseplatform.application.service.HomeworkService;
import com.huage.courseplatform.application.service.NoticeService;
import com.huage.courseplatform.framework.core.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HomeworkServiceImpl extends BaseServiceImpl<HomeworkMapper, Homework> implements HomeworkService {

    @Resource
    HomeworkMapper homeworkMapper;

    @Override
    public Page<Homework> getToDoHomeWorkPage(String studentId, Page<Homework> page) {
        return homeworkMapper.getToDoPageByStudentId(page,studentId);
    }

    @Override
    public Page<Homework> getDonePageByStudentId(String studentId, Page<Homework> page) {
        return homeworkMapper.getDonePageByStudentId(page,studentId);
    }
}
